<?php

use Drupal\shushengyuan\ShushengyuanServicesController;

/**
 * Implements hook_services_resources().
 */
function shushengyuan_services_resources() {
  return [
    'shushengyuan-anonymous' => [
      'retrieve' => [
        'help' => '执行一个操作',
        'callback' => [
          ShushengyuanServicesController::class,
          'retrieveAnonymous',
        ],
        'access callback' => 'shushengyuan_services_true',
        'args' => [
          [
            'name' => 'action',
            'type' => 'string',
            'description' => 'API',
            'source' => ['path' => '0',],
            'optional' => FALSE,
          ],
        ],
      ],
    ],
    'shushengyuan' => [
      'retrieve' => [
        'help' => '执行一个操作',
        'callback' => [ShushengyuanServicesController::class, 'retrieve',],
        'access arguments' => ['shushengyuan services retrieve api',],
        'args' => [
          [
            'name' => 'action',
            'type' => 'string',
            'description' => 'API',
            'source' => ['path' => '0',],
            'optional' => FALSE,
          ],
        ],
      ],
      'actions' => [
        'login' => [
          'help' => '通过 code 换取 token 登录 并处理来源关系',
          'callback' => [ShushengyuanServicesController::class, 'login',],
          'args' => [
            [
              'name' => 'code',
              'type' => 'string',
              'description' => 'wx.login获取的code',
              'source' => ['data' => 'code',],
              'optional' => FALSE,
            ],
            [
              'name' => 'uid',
              'type' => 'string',
              'description' => '如果是转发 获取的uid',
              'source' => ['data' => 'uid',],
              'optional' => TRUE,
              'default value' => '',
            ],
            [
              'name' => 'qr',
              'type' => 'string',
              'description' => '如果是扫普通链接二维码获取的二维码内容https://developers.weixin.qq.com/miniprogram/introduction/qrcode.html',
              'source' => ['data' => 'qr',],
              'optional' => TRUE,
              'default value' => '',
            ],
            [
              'name' => 'scene',
              'type' => 'string',
              'description' => '如果是扫小程序二维码获取的二维码内容https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/qr-code.html',
              'source' => ['data' => 'scene',],
              'optional' => TRUE,
              'default value' => '',
            ],
          ],
          'access callback' => 'shushengyuan_services_true',
        ],
        'submitLogin' => [
          'help' => '通过 code 换取 token 登录 并处理来源关系',
          'callback' => [ShushengyuanServicesController::class, 'submitLogin',],
          'args' => [
            [
              'name' => 'code',
              'type' => 'string',
              'description' => 'wx.login获取的code',
              'source' => ['data' => 'code',],
              'optional' => FALSE,
            ],
            [
              'name' => 'options',
              'type' => 'array',
              'description' => '小程序onLoad query 参数',
              'source' => ['data' => 'options',],
              'optional' => TRUE,
              'default value' => [],
            ],
          ],
          'access callback' => 'shushengyuan_services_true',
        ],
        'set_user_info' => [
          'help' => '用户授权 common/set_user_info',
          'callback' => [
            ShushengyuanServicesController::class,
            'set_user_info',
          ],
          'args' => [
            [
              'name' => 'iv',
              'type' => 'string',
              'description' => '加密算法的初始向量',
              'source' => ['data' => 'iv',],
              'optional' => FALSE,
            ],
            [
              'name' => 'encrypted',
              'type' => 'string',
              'description' => '加密数据',
              'source' => ['data' => 'encrypted',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_plant_grass' => [
          'help' => '提交发布种草 common/submit_plant_grass',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_plant_grass',
          ],
          'args' => [
            [
              'name' => 'type',
              'type' => 'int',
              'description' => '类型 0 图文 1 视频',
              'source' => ['data' => 'type',],
              'optional' => FALSE,
            ],
            [
              'name' => 'image',
              'type' => 'int',
              'description' => '封面图 视频时才需要传 图文时默认取第一张',
              'source' => ['data' => 'image',],
              'optional' => FALSE,
            ],
            [
              'name' => 'fids',
              'type' => 'array',
              'description' => '上传的图片/视频FID File.id',
              'source' => ['data' => 'fids',],
              'optional' => FALSE,
            ],
            [
              'name' => 'title',
              'type' => 'string',
              'description' => '标题',
              'source' => ['data' => 'title',],
              'optional' => FALSE,
            ],
            [
              'name' => 'content',
              'type' => 'string',
              'description' => '正文',
              'source' => ['data' => 'content',],
              'optional' => FALSE,
            ],
            [
              'name' => 'topics',
              'type' => 'array',
              'description' => '话题IDS',
              'source' => ['data' => 'topics',],
              'optional' => FALSE,
            ],
            [
              'name' => 'products',
              'type' => 'array',
              'description' => '关联商品IDS',
              'source' => ['data' => 'products',],
              'optional' => TRUE,
              'default value' => [],
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_new_topic' => [
          'help' => '创建新话题 common/submit_new_topic',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_new_topic',
          ],
          'args' => [
            [
              'name' => 'title',
              'type' => 'string',
              'description' => '话题标题',
              'source' => ['data' => 'title',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'switch_city' => [
          'help' => '切换城市 common/switch_city',
          'callback' => [ShushengyuanServicesController::class, 'switch_city',],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'CityItem.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_add_cart' => [
          'help' => '添加到购物车 common/submit_add_cart',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_add_cart',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'Standard.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'qty',
              'type' => 'int',
              'description' => '购买数量',
              'source' => ['data' => 'qty',],
              'optional' => FALSE,
            ],
            [
              'name' => 'type',
              'type' => 'int',
              'description' => '购买类型 0 正常 1 拼团 2 秒杀',
              'source' => ['data' => 'type',],
              'optional' => TRUE,
              'default value' => '0',
            ],
            [
              'name' => 'options',
              'type' => 'array',
              'description' => '页面参数',
              'source' => ['data' => 'options',],
              'optional' => TRUE,
              'default value' => [],
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_buy_now' => [
          'help' => '立即购买 common/submit_buy_now',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_buy_now',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'Standard.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'qty',
              'type' => 'int',
              'description' => '购买数量',
              'source' => ['data' => 'qty',],
              'optional' => FALSE,
            ],
            [
              'name' => 'type',
              'type' => 'int',
              'description' => '1 默认详情  2 秒杀详情 3 去拼团 4 拼团详情 5 平台供应',
              'source' => ['data' => 'type',],
              'optional' => TRUE,
              'default value' => '0',
            ],
            [
              'name' => 'pting',
              'type' => 'int',
              'description' => '如果是参与其他人的拼团需要传 ProductPtingItem.id',
              'source' => ['data' => 'pting',],
              'optional' => TRUE,
              'default value' => '0',
            ],
            [
              'name' => 'options',
              'type' => 'array',
              'description' => '页面参数',
              'source' => ['data' => 'options',],
              'optional' => TRUE,
              'default value' => [],
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'select_line_item_payment' => [
          'help' => '选择购物车中的部分产品进行支付 common/select_line_item_payment',
          'callback' => [
            ShushengyuanServicesController::class,
            'select_line_item_payment',
          ],
          'args' => [
            [
              'name' => 'lids',
              'type' => 'array',
              'description' => '购物车行项line_item_ids',
              'source' => ['data' => 'lids',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_modify_qty' => [
          'help' => '修改购物车商品数量 common/submit_modify_qty',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_modify_qty',
          ],
          'args' => [
            [
              'name' => 'lid',
              'type' => 'int',
              'description' => 'line_item_id',
              'source' => ['data' => 'lid',],
              'optional' => FALSE,
            ],
            [
              'name' => 'qty',
              'type' => 'int',
              'description' => '修改后的数量',
              'source' => ['data' => 'qty',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_delete_lines' => [
          'help' => '从购物车删除产品 common/submit_delete_lines',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_delete_lines',
          ],
          'args' => [
            [
              'name' => 'lids',
              'type' => 'array',
              'description' => '购物车行项line_item_ids',
              'source' => ['data' => 'lids',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_switch_address' => [
          'help' => '切换所有结算订单的收货地址 并计算运费 common/submit_switch_address',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_switch_address',
          ],
          'args' => [
            [
              'name' => 'address',
              'type' => 'array',
              'description' => 'address',
              'source' => ['data' => 'address',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_switch_shipping' => [
          'help' => '切换配送方式 common/submit_switch_shipping',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_switch_shipping',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'Order.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'shipping',
              'type' => 'int',
              'description' => '配送方式 0 到店自提 1 快达 2 快递',
              'source' => ['data' => 'shipping',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitUseCoupon' => [
          'help' => '使用优惠券 common/submitUseCoupon',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitUseCoupon',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'Order.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'cid',
              'type' => 'int',
              'description' => '优惠券持有ID',
              'source' => ['data' => 'cid',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitChooseLocation' => [
          'help' => '结算提交选择经纬度 common/submitChooseLocation',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitChooseLocation',
          ],
          'args' => [
            [
              'name' => 'name',
              'type' => 'string',
              'description' => '位置名称',
              'source' => ['data' => 'name',],
              'optional' => FALSE,
            ],
            [
              'name' => 'address',
              'type' => 'string',
              'description' => '详细地址',
              'source' => ['data' => 'address',],
              'optional' => FALSE,
            ],
            [
              'name' => 'latitude',
              'type' => 'string',
              'description' => '纬度',
              'source' => ['data' => 'latitude',],
              'optional' => FALSE,
            ],
            [
              'name' => 'longitude',
              'type' => 'string',
              'description' => '经度',
              'source' => ['data' => 'longitude',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_order_note' => [
          'help' => '提交订单备注 common/submit_order_note',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_order_note',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'Order.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'note',
              'type' => 'string',
              'description' => '订单备注',
              'source' => ['data' => 'note',],
              'optional' => TRUE,
              'default value' => '',
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_switch_gold_deduct' => [
          'help' => '切换金币抵扣 common/submit_switch_gold_deduct',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_switch_gold_deduct',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'Order.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'deduct',
              'type' => 'int',
              'description' => '是否抵扣 0 不抵扣 1 抵扣',
              'source' => ['data' => 'deduct',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_payment_order' => [
          'help' => '结算订单 common/submit_payment_order',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_payment_order',
          ],
          'args' => [
            [
              'name' => 'ids',
              'type' => 'array',
              'description' => 'Order.id 需要结算的订单ID',
              'source' => ['data' => 'ids',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_order_wxpay' => [
          'help' => '微信支付订单 common/submit_order_wxpay',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_order_wxpay',
          ],
          'args' => [],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_close_order' => [
          'help' => '取消订单 common/submit_close_order',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_close_order',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'MyOrderItem.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitDelOrder' => [
          'help' => '删除订单 common/submitDelOrder',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitDelOrder',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'MyOrderItem.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_confirm_receipt' => [
          'help' => '确认收货 common/submit_confirm_receipt',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_confirm_receipt',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'MyOrderItem.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_order_comment' => [
          'help' => '提交评论 common/submit_order_comment',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_order_comment',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'MyOrderItem.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'comments',
              'type' => 'array',
              'description' => '评论数组',
              'source' => ['data' => 'comments',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_vip' => [
          'help' => '平台会员申请 common/submit_vip',
          'callback' => [ShushengyuanServicesController::class, 'submit_vip',],
          'args' => [
            [
              'name' => 'name',
              'type' => 'string',
              'description' => '姓名',
              'source' => ['data' => 'name',],
              'optional' => FALSE,
            ],
            [
              'name' => 'birthday',
              'type' => 'string',
              'description' => '生日 YYYY-MM-DD 格式',
              'source' => ['data' => 'birthday',],
              'optional' => FALSE,
            ],
            [
              'name' => 'profession',
              'type' => 'string',
              'description' => '职业',
              'source' => ['data' => 'profession',],
              'optional' => FALSE,
            ],
            [
              'name' => 'phone',
              'type' => 'string',
              'description' => '电话',
              'source' => ['data' => 'phone',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_close_errand_order' => [
          'help' => '关闭快达订单 common/submit_close_errand_order',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_close_errand_order',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'ErrandOrder.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_assign_errand_order' => [
          'help' => '快达订单分配 common/submit_assign_errand_order',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_assign_errand_order',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'ErrandOrder.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'eid',
              'type' => 'int',
              'description' => 'ErrandItem.id',
              'source' => ['data' => 'eid',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_sign' => [
          'help' => '今日签到 common/submit_sign',
          'callback' => [ShushengyuanServicesController::class, 'submit_sign',],
          'args' => [],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_cash' => [
          'help' => '提交提现申请 common/submit_cash',
          'callback' => [ShushengyuanServicesController::class, 'submit_cash',],
          'args' => [
            [
              'name' => 'amount',
              'type' => 'string',
              'description' => '提现金额',
              'source' => ['data' => 'amount',],
              'optional' => FALSE,
            ],
            [
              'name' => 'type',
              'type' => 'int',
              'description' => '提现方式 0 微信',
              'source' => ['data' => 'type',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitCash2' => [
          'help' => '提交提现申请 common/submitCash2',
          'callback' => [ShushengyuanServicesController::class, 'submitCash2',],
          'args' => [
            [
              'name' => 'amount',
              'type' => 'string',
              'description' => '提现金额',
              'source' => ['data' => 'amount',],
              'optional' => FALSE,
            ],
            [
              'name' => 'type',
              'type' => 'string',
              'description' => '提现类型',
              'source' => ['data' => 'type',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_store_settle' => [
          'help' => '商家入驻 common/submit_store_settle',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_store_settle',
          ],
          'args' => [
            [
              'name' => 'sex',
              'type' => 'int',
              'description' => '性别 1 男 2 女',
              'source' => ['data' => 'sex',],
              'optional' => FALSE,
            ],
            [
              'name' => 'name',
              'type' => 'string',
              'description' => '名字',
              'source' => ['data' => 'name',],
              'optional' => FALSE,
            ],
            [
              'name' => 'phone',
              'type' => 'string',
              'description' => '联系电话',
              'source' => ['data' => 'phone',],
              'optional' => FALSE,
            ],
            [
              'name' => 'identity',
              'type' => 'string',
              'description' => '身份证号',
              'source' => ['data' => 'identity',],
              'optional' => FALSE,
            ],
            [
              'name' => 'level_1',
              'type' => 'string',
              'description' => '直推一级',
              'source' => ['data' => 'level_1',],
              'optional' => FALSE,
            ],
            [
              'name' => 'level_2',
              'type' => 'string',
              'description' => '间推二级',
              'source' => ['data' => 'level_2',],
              'optional' => FALSE,
            ],
            [
              'name' => 'store_name',
              'type' => 'string',
              'description' => '店名',
              'source' => ['data' => 'store_name',],
              'optional' => FALSE,
            ],
            [
              'name' => 'store_address',
              'type' => 'string',
              'description' => '店铺地址',
              'source' => ['data' => 'store_address',],
              'optional' => FALSE,
            ],
            [
              'name' => 'longitude',
              'type' => 'string',
              'description' => '经度',
              'source' => ['data' => 'longitude',],
              'optional' => FALSE,
            ],
            [
              'name' => 'latitude',
              'type' => 'string',
              'description' => '纬度',
              'source' => ['data' => 'latitude',],
              'optional' => FALSE,
            ],
            [
              'name' => 'bank_no',
              'type' => 'string',
              'description' => '收款卡号',
              'source' => ['data' => 'bank_no',],
              'optional' => FALSE,
            ],
            [
              'name' => 'bank_name',
              'type' => 'string',
              'description' => '开户行',
              'source' => ['data' => 'bank_name',],
              'optional' => FALSE,
            ],
            [
              'name' => 'bank_face',
              'type' => 'int',
              'description' => '银行卡正面照 File.id',
              'source' => ['data' => 'bank_face',],
              'optional' => FALSE,
            ],
            [
              'name' => 'identity_face',
              'type' => 'int',
              'description' => '身份证正面照 File.id',
              'source' => ['data' => 'identity_face',],
              'optional' => FALSE,
            ],
            [
              'name' => 'logo',
              'type' => 'int',
              'description' => '店铺LOGO File.id',
              'source' => ['data' => 'logo',],
              'optional' => FALSE,
            ],
            [
              'name' => 'business',
              'type' => 'int',
              'description' => '营业执照上传后的fid File.id',
              'source' => ['data' => 'business',],
              'optional' => FALSE,
            ],
            [
              'name' => 'open',
              'type' => 'string',
              'description' => '营业时间',
              'source' => ['data' => 'open',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_store_taxation' => [
          'help' => '客户报单 common/submit_store_taxation',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_store_taxation',
          ],
          'args' => [
              [
                  'name' => 'name',
                  'type' => 'string',
                  'description' => '名字',
                  'source' => ['data' => 'name',],
                  'optional' => FALSE,
              ],
              [
                  'name' => 'store_name',
                  'type' => 'string',
                  'description' => '店名',
                  'source' => ['data' => 'store_name',],
                  'optional' => FALSE,
              ],
              [
                  'name' => 'ages',
                  'type' => 'int',
                  'description' => '年龄',
                  'source' => ['data' => 'ages',],
                  'optional' => FALSE,
              ],
              [
                  'name' => 'sex',
                  'type' => 'int',
                  'description' => '性别 1 男 2 女',
                  'source' => ['data' => 'sex',],
                  'optional' => FALSE,
              ],
              [
                  'name' => 'phone',
                  'type' => 'string',
                  'description' => '联系电话',
                  'source' => ['data' => 'phone',],
                  'optional' => FALSE,
              ],
              [
                  'name' => 'identity',
                  'type' => 'string',
                  'description' => '身份证号',
                  'source' => ['data' => 'identity',],
                  'optional' => FALSE,
              ],
              [
                  'name' => 'store_title',
                  'type' => 'string',
                  'description' => '预做项目',
                  'source' => ['data' => 'store_title',],
                  'optional' => FALSE,
              ],
              [
                  'name' => 'remake',
                  'type' => 'string',
                  'description' => '消费情况',
                  'source' => ['data' => 'remake',],
                  'optional' => FALSE,
              ],
              [
                  'name' => 'doctor',
                  'type' => 'string',
                  'description' => '预约医生',
                  'source' => ['data' => 'doctor',],
                  'optional' => FALSE,
              ],
              [
                  'name' => 'faith',
                  'type' => 'string',
                  'description' => '宗教信仰',
                  'source' => ['data' => 'faith',],
                  'optional' => FALSE,
              ],
              [
                  'name' => 'nowdate',
                  'type' => 'string',
                  'description' => '预约时间',
                  'source' => ['data' => 'nowdate',],
                  'optional' => FALSE,
              ]
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitStoreSettle' => [
          'help' => '店家入驻 common/submitStoreSettle',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitStoreSettle',
          ],
          'args' => [
            [
              'name' => 'form',
              'type' => 'array',
              'description' => '入驻参数',
              'source' => ['data' => 'form',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_change_store_open' => [
          'help' => '修改营业时间 common/submit_change_store_open',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_change_store_open',
          ],
          'args' => [
            [
              'name' => 'open',
              'type' => 'string',
              'description' => '营业时间',
              'source' => ['data' => 'open',],
              'optional' => TRUE,
              'default value' => '',
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_distribution' => [
          'help' => '推广申请 common/submit_distribution',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_distribution',
          ],
          'args' => [
            [
              'name' => 'sex',
              'type' => 'int',
              'description' => '性别 1 男 2 女',
              'source' => ['data' => 'sex',],
              'optional' => FALSE,
            ],
            [
              'name' => 'name',
              'type' => 'string',
              'description' => '名字',
              'source' => ['data' => 'name',],
              'optional' => FALSE,
            ],
            [
              'name' => 'phone',
              'type' => 'string',
              'description' => '联系电话',
              'source' => ['data' => 'phone',],
              'optional' => FALSE,
            ],
            [
              'name' => 'bank_no',
              'type' => 'string',
              'description' => '收款卡号',
              'source' => ['data' => 'bank_no',],
              'optional' => FALSE,
            ],
            [
              'name' => 'bank_name',
              'type' => 'string',
              'description' => '开户行',
              'source' => ['data' => 'bank_name',],
              'optional' => FALSE,
            ],
            [
              'name' => 'address',
              'type' => 'string',
              'description' => '地址',
              'source' => ['data' => 'address',],
              'optional' => FALSE,
            ],
            [
              'name' => 'reviewer',
              'type' => 'string',
              'description' => '审核人',
              'source' => ['data' => 'reviewer',],
              'optional' => FALSE,
            ],
            [
              'name' => 'level_1',
              'type' => 'string',
              'description' => '直推一级',
              'source' => ['data' => 'level_1',],
              'optional' => FALSE,
            ],
            [
              'name' => 'level_2',
              'type' => 'string',
              'description' => '间推二级',
              'source' => ['data' => 'level_2',],
              'optional' => FALSE,
            ],
            [
              'name' => 'identity_face',
              'type' => 'int',
              'description' => '身份证正面照 File.id',
              'source' => ['data' => 'identity_face',],
              'optional' => FALSE,
            ],
            [
              'name' => 'bank_face',
              'type' => 'int',
              'description' => '银行卡正面 File.id',
              'source' => ['data' => 'bank_face',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_pc_login' => [
          'help' => '商家扫码登录PC后台 common/submit_pc_login',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_pc_login',
          ],
          'args' => [
            [
              'name' => 'qr',
              'type' => 'string',
              'description' => '二维码内容',
              'source' => ['data' => 'qr',],
              'optional' => TRUE,
              'default value' => '',
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_verification_service' => [
          'help' => '核销服务订单 common/submit_verification_service',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_verification_service',
          ],
          'args' => [
            [
              'name' => 'qr',
              'type' => 'string',
              'description' => '用户提供的服务核销二维码内容',
              'source' => ['data' => 'qr',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitRefundService' => [
          'help' => '服务订单申请退款 common/submitRefundService',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitRefundService',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'MyServiceItem.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_confirm_service' => [
          'help' => '用户确认服务订单核销 用户主动核销 无需商家确认 common/submit_confirm_service',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_confirm_service',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'MyServiceItem.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_plant_grass_like' => [
          'help' => '种草点赞 common/submit_plant_grass_like',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_plant_grass_like',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'PlantGrassItem.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_favorite_product' => [
          'help' => '产品收藏/取消收藏 common/submit_favorite_product',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_favorite_product',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'ProductItem.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'status',
              'type' => 'int',
              'description' => '是否收藏 0 否 1 是',
              'source' => ['data' => 'status',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'file_upload' => [
          'help' => '文件上传 common/file_upload',
          'callback' => [ShushengyuanServicesController::class, 'file_upload',],
          'args' => [],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_point_exchange' => [
          'help' => '积分兑换 common/submit_point_exchange',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_point_exchange',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'PointProductItem.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'switch_point_exchange_order_address' => [
          'help' => '积分兑换切换收货地址 并计算运费 common/switch_point_exchange_order_address',
          'callback' => [
            ShushengyuanServicesController::class,
            'switch_point_exchange_order_address',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'PointExchangeOrder.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'address',
              'type' => 'array',
              'description' => 'address',
              'source' => ['data' => 'address',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_point_exchange_order_pay' => [
          'help' => '支付兑换订单 common/submit_point_exchange_order_pay',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_point_exchange_order_pay',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'PointExchangeOrder.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_point_exchange_order_abandon' => [
          'help' => '放弃支付兑换订单运费 退回支付的积分 common/submit_point_exchange_order_abandon',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_point_exchange_order_abandon',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'PointExchangeOrder.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_point_confirm_goods' => [
          'help' => '兑换订单确认收货 common/submit_point_confirm_goods',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_point_confirm_goods',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'PointExchangeOrder.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_order_service' => [
          'help' => '提交售后申请 common/submit_order_service',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_order_service',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => '订单ID OrderCart.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'lid',
              'type' => 'int',
              'description' => '项ID LineItemProduct.id',
              'source' => ['data' => 'lid',],
              'optional' => FALSE,
            ],
            [
              'name' => 'type',
              'type' => 'int',
              'description' => '申请类型 0 仅退款 1 退货退款',
              'source' => ['data' => 'type',],
              'optional' => FALSE,
            ],
            [
              'name' => 'receipt',
              'type' => 'int',
              'description' => '货物状态 0 未收到货 1 已收到货  退货退款时必为1',
              'source' => ['data' => 'receipt',],
              'optional' => FALSE,
            ],
            [
              'name' => 'amount',
              'type' => 'string',
              'description' => '退款金额 已收到货时 可以编辑',
              'source' => ['data' => 'amount',],
              'optional' => FALSE,
            ],
            [
              'name' => 'reason',
              'type' => 'int',
              'description' => '退款原因',
              'source' => ['data' => 'reason',],
              'optional' => FALSE,
            ],
            [
              'name' => 'desc',
              'type' => 'string',
              'description' => '退款说明',
              'source' => ['data' => 'desc',],
              'optional' => TRUE,
              'default value' => '',
            ],
            [
              'name' => 'fids',
              'type' => 'array',
              'description' => '凭证FID',
              'source' => ['data' => 'fids',],
              'optional' => TRUE,
              'default value' => [],
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_order_service_shipping' => [
          'help' => '售后单上传物流信息 common/submit_order_service_shipping',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_order_service_shipping',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => '订单ID',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'lid',
              'type' => 'int',
              'description' => 'line.id',
              'source' => ['data' => 'lid',],
              'optional' => FALSE,
            ],
            [
              'name' => 'shipping_type',
              'type' => 'string',
              'description' => '快递公司',
              'source' => ['data' => 'shipping_type',],
              'optional' => FALSE,
            ],
            [
              'name' => 'shipping_number',
              'type' => 'string',
              'description' => '快递单号',
              'source' => ['data' => 'shipping_number',],
              'optional' => FALSE,
            ],
            [
              'name' => 'fids',
              'type' => 'array',
              'description' => '凭证FID',
              'source' => ['data' => 'fids',],
              'optional' => TRUE,
              'default value' => [],
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'store_order_shipping' => [
          'help' => '订单发货 common/store_order_shipping',
          'callback' => [
            ShushengyuanServicesController::class,
            'store_order_shipping',
          ],
          'args' => [
            [
              'name' => 'order_id',
              'type' => 'int',
              'description' => '订单ID',
              'source' => ['data' => 'order_id',],
              'optional' => TRUE,
              'default value' => 0,
            ],
            [
              'name' => 'shipping_type',
              'type' => 'string',
              'description' => '快递公司',
              'source' => ['data' => 'shipping_type',],
              'optional' => TRUE,
              'default value' => '',
            ],
            [
              'name' => 'shipping_number',
              'type' => 'string',
              'description' => '快递单号',
              'source' => ['data' => 'shipping_number',],
              'optional' => TRUE,
              'default value' => '',
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'store_submit_order_service_status' => [
          'help' => '审核售后单 common/store_submit_order_service_status',
          'callback' => [
            ShushengyuanServicesController::class,
            'store_submit_order_service_status',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => '售后单ID',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'status',
              'type' => 'int',
              'description' => '1 通过 2 拒绝',
              'source' => ['data' => 'status',],
              'optional' => FALSE,
            ],
            [
              'name' => 'desc',
              'type' => 'string',
              'description' => '说明 如果拒绝的情况可以填写',
              'source' => ['data' => 'desc',],
              'optional' => TRUE,
              'default value' => '',
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'store_submit_confirm_shipping' => [
          'help' => '售后单确认退货到货 common/store_submit_confirm_shipping',
          'callback' => [
            ShushengyuanServicesController::class,
            'store_submit_confirm_shipping',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => '售后单ID',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'store_submit_order_refund' => [
          'help' => '售后单退款 common/store_submit_order_refund',
          'callback' => [
            ShushengyuanServicesController::class,
            'store_submit_order_refund',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => '售后单ID',
              'source' => ['data' => 'id',],
              'optional' => TRUE,
              'default value' => 0,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submit_draw_sweepstake' => [
          'help' => '抽奖 common/submit_draw_sweepstake',
          'callback' => [
            ShushengyuanServicesController::class,
            'submit_draw_sweepstake',
          ],
          'args' => [],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitTeamDistribution' => [
          'help' => '团队推广申请 common/submitTeamDistribution',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitTeamDistribution',
          ],
          'args' => [
            [
              'name' => 'name',
              'type' => 'string',
              'description' => '名字',
              'source' => ['data' => 'name',],
              'optional' => FALSE,
            ],
            [
              'name' => 'phone',
              'type' => 'string',
              'description' => '电话',
              'source' => ['data' => 'phone',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitTeamCompanyLeaderApply' => [
          'help' => '申请市场部长 common/submitTeamCompanyLeaderApply',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitTeamCompanyLeaderApply',
          ],
          'args' => [],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitGiftQr' => [
          'help' => '提交兑换二维码扫码后的内容 common/submitGiftQr',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitGiftQr',
          ],
          'args' => [
            [
              'name' => 'qr',
              'type' => 'string',
              'description' => '二维码内容',
              'source' => ['data' => 'qr',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitAgainBuyByOrder' => [
          'help' => '再次购买通过订单 common/submitAgainBuyByOrder',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitAgainBuyByOrder',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => '订单ID',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitErrandApply' => [
          'help' => '提交快达申请 common/submitErrandApply',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitErrandApply',
          ],
          'args' => [
            [
              'name' => 'name',
              'type' => 'string',
              'description' => '姓名',
              'source' => ['data' => 'name',],
              'optional' => FALSE,
            ],
            [
              'name' => 'phone',
              'type' => 'string',
              'description' => '电话',
              'source' => ['data' => 'phone',],
              'optional' => FALSE,
            ],
            [
              'name' => 'team',
              'type' => 'string',
              'description' => '团队名',
              'source' => ['data' => 'team',],
              'optional' => TRUE,
              'default value' => '',
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitOutErrandTeam' => [
          'help' => '踢出团队 common/submitOutErrandTeam',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitOutErrandTeam',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'ID',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitDenyErrandTeam' => [
          'help' => '拒绝申请 common/submitDenyErrandTeam',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitDenyErrandTeam',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'ID',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitInErrandTeam' => [
          'help' => '通过申请 common/submitInErrandTeam',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitInErrandTeam',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'ID',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitPromoteApply' => [
          'help' => '提交推广申请 common/submitPromoteApply',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitPromoteApply',
          ],
          'args' => [
            [
              'name' => 'name',
              'type' => 'string',
              'description' => '姓名',
              'source' => ['data' => 'name',],
              'optional' => FALSE,
            ],
            [
              'name' => 'phone',
              'type' => 'string',
              'description' => '电话',
              'source' => ['data' => 'phone',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitPlantGrassComments' => [
          'help' => '提交种草推荐评论 common/submitPlantGrassComments',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitPlantGrassComments',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => '种草推荐ID',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'content',
              'type' => 'string',
              'description' => '评论内容',
              'source' => ['data' => 'content',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitDrawCoupon' => [
          'help' => '领取优惠券 common/submitDrawCoupon',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitDrawCoupon',
          ],
          'args' => [
            [
              'name' => 'cid',
              'type' => 'int',
              'description' => '优惠券ID',
              'source' => ['data' => 'cid',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitAddComment' => [
          'help' => '提交追加评论 common/submitAddComment',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitAddComment',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'wx.login获取的code',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'content',
              'type' => 'string',
              'description' => 'wx.login获取的code',
              'source' => ['data' => 'content',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitDrawCouponfree' => [
          'help' => '领取优惠券 common/submitDrawCouponfree',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitDrawCouponfree',
          ],
          'args' => [
            [
              'name' => 'cid',
              'type' => 'int',
              'description' => '优惠券ID',
              'source' => ['data' => 'cid',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitGold' => [
          'help' => '金币抵扣 common/submitGold',
          'callback' => [ShushengyuanServicesController::class, 'submitGold',],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => '订单号',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'gold',
              'type' => 'string',
              'description' => '抵扣金额',
              'source' => ['data' => 'gold',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitHotelRoomSchedule' => [
          'help' => '酒店预定 common/submitHotelRoomSchedule',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitHotelRoomSchedule',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'room.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'qty',
              'type' => 'int',
              'description' => '预定数量',
              'source' => ['data' => 'qty',],
              'optional' => TRUE,
              'default value' => 0,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitHotelRoomScheduleDay' => [
          'help' => '预订日历 common/submitHotelRoomScheduleDay',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitHotelRoomScheduleDay',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'room.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'ymd',
              'type' => 'string',
              'description' => '日期',
              'source' => ['data' => 'ymd',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitSwitchHotelRoomScheduleDay' => [
          'help' => '切换预订选择 common/submitSwitchHotelRoomScheduleDay',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitSwitchHotelRoomScheduleDay',
          ],
          'args' => [
            [
              'name' => 'id',
              'type' => 'int',
              'description' => 'room.id',
              'source' => ['data' => 'id',],
              'optional' => FALSE,
            ],
            [
              'name' => 'ymd',
              'type' => 'string',
              'description' => '日期',
              'source' => ['data' => 'ymd',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitAppShowOptions' => [
          'help' => '提交app onshow 的参数 common/submitAppShowOptions',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitAppShowOptions',
          ],
          'args' => [
            [
              'name' => 'options',
              'type' => 'array',
              'description' => '参数',
              'source' => ['data' => 'options',],
              'optional' => FALSE,
            ],
          ],
          'access callback' => 'shushengyuan_services_true',
        ],
        'submitIntentionStore' => [
          'help' => '提交意向资料 common/submitIntentionStore',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitIntentionStore',
          ],
          'args' => [
            [
              'name' => 'form',
              'type' => 'array',
              'description' => '提交的资料',
              'source' => ['data' => 'form',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
        'submitSubscribeMessage' => [
          'help' => '提交订阅消息成功记录 common/submitSubscribeMessage',
          'callback' => [
            ShushengyuanServicesController::class,
            'submitSubscribeMessage',
          ],
          'args' => [
            [
              'name' => 'res',
              'type' => 'array',
              'description' => 'requestSubscribeMessage success res',
              'source' => ['data' => 'res',],
              'optional' => FALSE,
            ],
          ],
          'access arguments' => ['shushengyuan services actions api',],
        ],
      ],
    ],
  ];
}
